package com.cblz.bd.server.core.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cblz.bd.common.core.entity.BaConfig;
import io.vavr.Tuple3;

import java.util.Map;

/**
 * @author yanjieping
 * @description 针对表【ba_config(系统配置)】的数据库操作Service
 * @createDate 2022-11-04 15:09:53
 */

public interface BaConfigService extends IService<BaConfig> {

    Map<String, Object> getAllInfoByPage(Tuple3<Page<BaConfig>, QueryWrapper<BaConfig>, Object> wrapperBaConfigTuple3);

    /**
     * 拿取所有信息返回给后台管理端
     *
     * @return
     */
    Map<String, Object> getAllInfoByAdmin();

    /**
     * 修改配置信息
     *
     * @param params 参数列表
     */
    void editConfigInfo(Map<String, Object> params);

    /**
     * 系统进入时获取的配置
     *
     * @return
     */
    Map<String, Object> getInitConfig();
}
